<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>{SITE_TITLE}</title>
<LINK HREF="{SITE_URL}templates/{TPL_NAME}/images/style.css" TYPE="text/css" REL="stylesheet">
<script language="Javascript">
var http = createRequestObject();

function createRequestObject() 
{
	var ro;
	var browser = navigator.appName;
	if(browser == "Microsoft Internet Explorer")
	{
		ro = new ActiveXObject("Microsoft.XMLHTTP");
	}
	else
	{
		ro = new XMLHttpRequest();
	}
	return ro;
}

function digResponse() 
{
	if(http.readyState == 4)
	{
        var response = http.responseText;
		
		returned = response.split('|');

		if(response.indexOf('|' != -1)) 
		{
			var id=returned[1];
			var numdigs=returned[2];
			var status=returned[0];
			
			if(status == '1')
			{
				document.getElementById('digbut'+id).innerHTML = 'dugg';
				document.getElementById('numdigs'+id).innerHTML = numdigs;
  			}
			else if(status == '2')
			{
				document.getElementById('digbut'+id).innerHTML = 'dugg';
			}
			else if(status == '0')
			{
				document.getElementById('digbut'+id).innerHTML = '<a href="{SITE_URL}login.php">login</a>';
			}
		}
    }
}

function dig(id)
{
	document.getElementById('digbut'+id).innerHTML = 'sending';

	http.open('get', '{SITE_URL}dig.php?i='+id);
    http.onreadystatechange = digResponse;
    http.send(null);
}
</script>
</head>

<body>
<table width="90%" height="60" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr bgcolor="#1b5790">
    <td valign="top" style="padding-left:10px;"><span class="headlogo"><a href="{SITE_URL}" class="headlogo">{SITE_TITLE}</a></span></td>
    <td>&nbsp;</td>
  </tr>
</table>
<table width="90%" height="30" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
	<td bgcolor="#ccdeaf" style="padding-left:10px;">{LOOP: CATS}<a href="{CATS.cat_url}" class="toplinks">{CATS.cat_title}</a> &nbsp;&nbsp; {/LOOP: CATS}</td>
  </tr>
</table>
<br>
<br>
